package com.itheima.app.interceptor;

import com.itheima.domain.db.User;



public class UserHolder {
    private static final ThreadLocal<User> TLUSER = new ThreadLocal<>();

    public static void set(User user) {
        TLUSER.set(user);

    }

    public static User get() {
        return TLUSER.get();
    }

    // 删除
    public static void remove() {
        TLUSER.remove();
    }

}
